package com.example.vote.flow.pojo.core;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

@Data
@Schema(description = "当前登录的用户对象Class")
public class Principle implements Serializable {

    public static final String SESSION_KEY = "principle";

    @Schema(description = "用户ID")
    private Long id;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "是否管理员，0=否，1=是")
    private Integer isAdmin;

}